Class symantec.itools.lang.Context
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.lang.Context

Object
   |
   +----symantec.itools.lang.Context

public class Context
extends Object
This class tracks information relating to the Browser/Applet Viewer that the program is currently running under. it is used in conjunction with class symantec.itools.net.RelativeURL to provide URLs that are relative to an appletÆs or applicationÆs document base. For applets the document base is the URL of the document that the applet is embedded in. For applications the document base is the same as the ôuser.dir system property.


Constructor Index

 o symantec.itools.lang.Context()
DonÆt use, this is an all-static class.

Method Index

 o getApplet()
Returns the current applet, or null if being used with an application.
 o getDocumentBase()
Returns the current document base.
 o isApplet()
Returns true if this is being used with an applet, otherwise this is being used with an application.
 o isApplication()
Returns true if this is being used with an application, otherwise this is being used with an applet.
 o setApplet(Applet)
Notes the applet this class is being used with.
 o setDocumentBase(URL)
Manually sets the current document base.

Constructors

 o Context
public Context()
DonÆt use, this is an all-static class.

Methods

 o getApplet
public static java.applet.Applet getApplet()
Returns the current applet, or null if being used with an application.

See Also:
setApplet
 o getDocumentBase
public static java.net.URL getDocumentBase()
Returns the current document base. For applets the document base is the URL of the document that the applet is embedded in. For applications the document base is the same as the ôuser.dirö system property.

See Also:
setDocumentBase
 o isApplet
public static boolean isApplet()
Returns true if this is being used with an applet, otherwise this is being used with an application.

See Also:
isApplication, getApplet
 o isApplication
public static boolean isApplication()
Returns true if this is being used with an application, otherwise this is being used with an applet.

See Also:
isApplet
 o setApplet
public static void setApplet(Applet a)
Notes the applet this class is being used with.

Parameters:
a - the applet to use this class with.
See Also:
getApplet
 o setDocumentBase
public static void setDocumentBase(URL db)
Manually sets the current document base. If the document base is not manually specified it will be automatically determined.

Parameters:
db - the new document base
See Also:
getDocumentBase

All Packages  Class Hierarchy  This Package  Previous  Next  Index